import {
  Entity,
  Column,
  PrimaryGeneratedColumn,
  CreateDateColumn,
  UpdateDateColumn,
} from 'typeorm';

@Entity({ name: 'uploadpictures' })
export class UploadPictures {
  @PrimaryGeneratedColumn({ name: 'Id' })
  Id: number;

  @Column({ name: 'service_id' })
  serviceId: string;

  @Column({ name: 'name' })
  name: string;

  @CreateDateColumn({ name: 'upload_time' })
  uploadTime: Date;

  @Column({ name: 'image_url', nullable: false })
  imageUrl: string;

  @Column({ name: 'suffix' })
  suffix: string;

  @Column({ name: 'deleted', type: 'bit', default: false })
  deleted: boolean;
} 